<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Wonky lock',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/12/17.jpg" alt="A long line at the post office" class="framed-centred-image" width="649" height="480"/>
<section id="lock">
	<h2>Bike lock</h2>
	<p>
		My mother left me a bike lock and cable last night.
		It was ones I used to use when I lived at her place.
		I figured I could use it to lock my wheels and make it harder for people to steal them, but I'd forgotten about this lock.
		From the time I took it out of the package, it's had trouble closing.
		You can open it just fine, if you have the right combo, but you have to try for several minutes to close the lock.
		The cable will certainly be of use, but I don't have time in my life to make use of that lock.
	</p>
</section>
<section id="eyeglasses">
	<h2>The search for eyeglasses</h2>
	<p>
		I checked with another eye place, one here in my city, and they're even more expensive than the shop at the mall.
		When I got home, I decided to research the last lead I've got on the Web.
		Their website doesn't list prices at all!
		That's stupid.
		I'm going to need to bike to the next city over just to find their prices.
		I don't have time for that today, but I'll probably get it done tomorrow.
	</p>
</section>
<section id="holiday">
	<h2>Last-minute holiday crowd</h2>
	<p>
		I forgot about the last-minute holiday crowd.
		My trip to the post office took a while, but not as long as I feared, given the length of the line.
		The postal workers kept us moving at a pretty decent pace.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			If you look at the order of the output, you see that all the displayed numbers are in order.
			Like you said, this is a binary search tree.
			If post-order transversal were used, both children would be evaluated and their values displayed before their parent.
			This would result in the displayed numbers jumping around a bit, going up and down.
			Instead, we see the numbers displayed in order, meaning that in-order traversal is being used instead.
			The left child is evaluated, then the parent, then the right child.
			Also, you say that <code>1</code> and <code>3</code> are both leaves attached to the parent <code>5</code>.
			That doesn't make any sense in a binary search tree, as one of the children would need to be <strong>*greater*</strong> than the parent.
			A binary search tree node can't have two lesser children.
		</p>
	</blockquote>
</section>
END
);
